package org.rkuk.kasutil.test.event 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author rkuk
	 */
	public class TestMethodEvent extends Event 
	{
		public static const EXECUTE:String = "execute";
		
		private var isSuccess_:Boolean;
		private var executionTime_:int;
		private var message_:String;
		
		public function TestMethodEvent(type:String,isSuccess:Boolean,executionTime:int,message:String="") 
		{ 
			super(type);
			isSuccess_ = isSuccess;
			executionTime_ = executionTime;
			message_ = message;
		} 
		
		public override function clone():Event 
		{ 
			return new TestMethodEvent(type, isSuccess_, executionTime_, message_);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("TestMethodEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get isSuccess():Boolean 
		{
			return isSuccess_;
		}
		
		public function get executionTime():int 
		{
			return executionTime_;
		}
		
		public function get message():String 
		{
			return message_;
		}
		
	}
	
}